./configure \
--prefix=/usr/local/php-5.2 \
--with-zlib \
--with-xml \
--with-gettext=/opt/local \
--with-gd \
--with-jpeg-dir=/opt/local \
--with-png-dir=/opt/local \
--with-openssl=/opt/local \
--with-mcrypt=/opt/local \
--with-mysql=/usr/local/mysql \
--with-mysqli \
--with-pdo-mysql=/usr/local/mysql \
--with-pdo-pgsql=/opt/local/lib/postgresql81 \
--with-pdo-sqlite \
--with-pgsql=/opt/local/lib/postgresql81 \
--with-freetype-dir=/opt/local \
--enable-fastcgi \
--enable-force-cgi-redirect \
--enable-mbstring \
--enable-sockets \
--enable-gd-native-ttf \
--enable-calendar \
--enable-soap \
--enable-shmop \
--enable-bcmath \
--enable-dba \
--with-inifile \
--enable-exif \
--enable-ftp \
--enable-sqlite-utf8 \
--enable-wddx
